package com.itheima03.day15;

import java.util.concurrent.CountDownLatch;

/**
 * @author 刘全
 * @date 2021/8/9
 */
public class GameTest {
    public static void main(String[] args) {
        CountDownLatch countDownLatch = new CountDownLatch(2);

        Game g = new Game(countDownLatch);
        g.start();
        XiaoMing xm = new XiaoMing(countDownLatch);
        xm.setName("小明");
        xm.start();

        XiaoHua xh = new XiaoHua(countDownLatch);
        xh.setName("小华");
        xh.start();


    }
}
